package com.jiazhong.basic.pack0524.manytoone.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Emp {
    private int empNo;
    private String ename;
    private String job;
    private int mgr;
    private String hireDate;
    private double sal;
    private double comm;
    private int deptNo;
    private int state;
    // 描述多对一情况 但是数据库emp表中没有这个数据，这个数据是在dept表
    private Dept dept;
}
